<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>{{bg}}</p>
        <p v-text="bg"></p>
        <p v-bind:style="{backgroundColor: bg,fontSize:'30px'}">爱上了大家来到</p>
    </div>
    <script src="./base/vue.min.js"></script>
    <script>
        //v-text 等价于  {{}}
        //v-bind 属性绑定指令   
        new Vue({
            el:"#app",
            data:{
                bg:"red"
            }
        })
    </script>
</body>

</html>